#ifndef CO2_WARNER_H_
#define CO2_WARNER_H_

#include "ses_lcd.h"
#include "ses_led.h"
#include "ses_timer.h"
#include "ses_adc.h"
#include "ses_scheduler.h"



/* Values for controlling the LEDs according to CO2 level */
#define GREEN_LEVEL			600
#define YELLOW_GREEN_LEVEL	1000
#define YELLOW_LEVEL		1400
#define RED_YELLOW_LEVEL	1800

/* CO2 threshold value */
#define THRESHOLD			2000

/* Store current temperature and CO2 values */
volatile static uint16_t co2 	= 0;
volatile static uint16_t temp 	= 0;



/*
 * Read temperature value from sensor.
 */
void read_Temp();

/*
 * Read CO2 value from sensor.
 */
void read_CO2();



#endif /* CO2_WARNER_H_ */
